package com.stark.wechat.message.template;

import java.util.Map;

/**
 * 模板消息。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.0, 2017/8/5
 */
public class TemplateMessage {
	private static final String DEFAULT_TOP_COLOR = "#FF0000";
	
	private String touser;	//	用户openID
	private String template_id;	// 模板ID
	private String topcolor;	// 模板头颜色
	private String url;	// 点击模板消息跳转链接
	private Map<String, TemplateField> data;	// 字段值集合
	private String eliminition;	// 去重业务逻辑
	private String templateName;	// 模板名称
	
	public TemplateMessage() {
		this.topcolor = TemplateMessage.DEFAULT_TOP_COLOR;
	}
	
	public String getTouser() {
		return touser;
	}
	
	public void setTouser(String touser) {
		this.touser = touser;
	}
	
	public String getTemplate_id() {
		return template_id;
	}
	
	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}
	
	public String getTopcolor() {
		return topcolor;
	}

	public void setTopcolor(String topcolor) {
		this.topcolor = topcolor;
	}

	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public Map<String, TemplateField> getData() {
		return data;
	}
	
	public void setData(Map<String, TemplateField> data) {
		this.data = data;
	}

	public String getEliminition() {
		return eliminition;
	}

	public void setEliminition(String eliminition) {
		this.eliminition = eliminition;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}
}
